
#include <windows.h>
#include "compare_disp.h"

const char* compare_disp::text[] =
{
    "Load an object from ply file",
    //"Load an object from *.tgt or *.ply file",
    "Load an object from:  ",
    "Simpl. methods:",
        "quadric",
        "quadric t area",
        "Melax",            //5
        "shortest edge",
        "orig (pseudo)",
    "Parameters:",          //8
        "t %",  // 
        "t %: ",// todo one of these two is enough
        "t:   ",
    "Collapse edges!",
    "Split vertices!",
};

const int compare_disp::yinc_text[] =
{
    0, // both
    0, // rely on show_mesh_disp::reshape()
    -30,
        -15,
        -15,
        -15,
        -15,
        -15,
    -30,
        -15,
        -15,
        -15,
    -35,
    -15,
};

const int compare_disp::xoffset_text[] = 
{
    0,
    0,
    0,
        30,
        30,
        30,
        30,
        30,
    0,
        30,
        30,
        30,
    0,
    0,
};

bool compare_disp::show_text[] =
{
    true,
    false,
    false,
        false,
        false,
        false,
        false,
        false,
    false,
        false,
        false,
        false,
    false,
    false,
};

bool compare_disp::menu_pos[] =
{
    true,
    false,
    false,
        false,
        false,
        false,
        false,
        false,
    false,
        false,
        false,
        false,
    false,
    false,
};

const int compare_disp::text_count = 14;



const short compare_disp::START_ACT_MENU_POS = 0;
//const bool compare_disp::HELP_SHOWED_ON_START = false;



const char* compare_disp::help_str[] =
{
    "escape - go to the main menu",
    "  g    - collapse edges",
    "  u    - split vertices",
    "",
    "  f    - show wireframe/solid",
    "  S    - smooth/flat shading",
    "  l    - turn on/off the lights",
    "  d    - display/hide the object",
    " w/up  - go up in the menu",
    "s/down - go down in the menu",
    "",
    "with LMB pressed mouse movement rotates the scene",
    "with RMB pressed mouse movement rescales the scene",
};

const int compare_disp::help_count = 13;
